//
//  QWNetworkAgentDelegate.h
//  Pods
//
//  Created by ZhangYanhua on 15/12/16.
//
//

#ifndef QWNetworkAgentDelegate_h
#define QWNetworkAgentDelegate_h

typedef void (^AFDownloadProgressBlock)(id request, NSProgress *progressInfo);

@protocol QWNetworkAgentDelegate <NSObject>
@required

/// 分析请求返回的结果，成功还是失败
- (BOOL)handleResultWithResonseData:(id)responseData error:(NSError *)error;

/// 请求成功的回调
- (void)requestCompleteFilterWithResponseData:(id)responseData;

/// 请求失败的回调
- (void)requestFailedFilterWithError:(NSError *)error;

/// 当需要断点续传时，获得下载进度的回调
- (AFDownloadProgressBlock)resumableDownloadProgressBlock;

@end

#endif /* QWNetworkAgentDelegate_h */
